import SvgIcon from './SvgIcon/index.vue';
import Pagination from './Pagination/index.vue';
import Category from './Category/index.vue'
//引入element-plus的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 全局对象
const allGloablComponents = {SvgIcon, Pagination,Category};
//对外暴露对象
export default {
    install(app: any) {
        Object.keys(allGloablComponents).forEach((key) => {
            app.component(key, allGloablComponents[key]);
        });
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
        }
    }
}